// pages/shop/enterprise/enterpriseInfo.js
import {
	getPapers
  } from '../../../api/enterprise'
  
Page({

	/**
	 * 页面的初始数据
	 */
	data: {
		food:"",
		license:""
	},

	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad: function (options) {
		this.getPapers(Number(options.id))
	},

	getPapers(id){
		let params = {enterpriseId:id}
		getPapers(params).then(
			res => {
			  console.info(res)
			  this.setData({
				food:res.data.food,
				license:res.data.license
			  })
			})
	}
	
})